<?php
$id = $_GET['id'];

require_once ("../../config.inc.php");
require_once ("../../include/mysql.inc.php");
require_once ("../../include/link.inc.php");

$LinkDao = new Link();
$flag=$LinkDao->delete($id);
if ($flag) {
	echo "删除链接成功！<br/><a href='../../admin/linkList.php'>跳转到链接列表</a>";
}
else {
	echo "删除链接失败！<br/><a href='' onclick='javascript:history.back(-1);'>返回到链接页面</a>";
}
?>